from django.urls import path
from user.views import RegisterView, SendSmsAPIView, SmsRegisterView, UserRetrieveAPIView, UserUpdateAPIView, \
    HistoryListAPIView, DingTalkLogin, DingTalkCallback, UploadImageAPIView, SubmitImageAPIView, GetInfo, \
    UserAuthCreateAPIView, Test
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView, TokenVerifyView

urlpatterns = [
    path("register/", RegisterView.as_view()),
    path("jwt/access/", TokenObtainPairView.as_view()),
    path("jwt/refresh/", TokenRefreshView.as_view()),
    path("jwt/verify/", TokenVerifyView.as_view()),
    path("sendSms/", SendSmsAPIView.as_view()),
    path("smsRegister/", SmsRegisterView.as_view()),
    path("userRetrieve/", UserRetrieveAPIView.as_view()),
    path("userUpdate/<int:pk>/", UserUpdateAPIView.as_view()),
    path("history/", HistoryListAPIView.as_view()),
    path("dingtalklogin/", DingTalkLogin.as_view()),
    path("dingtalkcallback/", DingTalkCallback.as_view()),
    path("uploadImage/", UploadImageAPIView.as_view()),
    path("submitImage/", SubmitImageAPIView.as_view()),
    path("getInfo/", GetInfo.as_view()),
    path("userAuth/", UserAuthCreateAPIView.as_view()),
    path("test/", Test.as_view()),
]
